<div class='listing_items'>
  <header>
    <% if(defined?(home) && home) %><a class='all' href="/notes">All</a><% end %>
    <h2><%= name %></h2>
  </header>

  <div class='list list_type_<%= name.downcase %>'>
    <% listing_items.each do |item| %>
      <a 
        href="<%= item[:url] %>"
        <% if(defined?(item[:yaml]['target'])) %>
          target="<%= item[:yaml]['target'] %>"
        <% end %> 
      >
        <% if(name != "Projects" && name != "Archived") %>
          <time><div><%= item[:yaml]["date"] %></div></time>
        <% end %>
        <h3><div><%= item[:yaml]["title"] %>
        <% if(defined?(item[:yaml]['description'])) %>
          <span class='description'><%= item[:yaml]['description'] %></span>
        <% end %>
        </div></h3>
      </a>
    <% end %>
  </ul>
</div>
